package com.wtwd.device.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author mjy
 * @since 2021-11-18
 */
@ApiModel(value="AlarmInfo对象", description="")
public class AlarmInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键id",notes = "修改时必传")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "设备id",required = true)
    private Long deviceId;

    @ApiModelProperty(value = "闹钟名称",required = true)
    private String name;

    @ApiModelProperty(value = "类型，0：普通提醒闹钟，1：智能提醒闹钟",required = true)
    private Integer type;

    @ApiModelProperty(value = "周重复")
    private Integer weekRepeat;

    @ApiModelProperty(value = "小时")
    private Integer hour;

    @ApiModelProperty(value = "分钟")
    private Integer minute;

    @ApiModelProperty(value = "状态，0：关闭，1：打开")
    private String state;

    @ApiModelProperty(value = "闹钟响应时间戳")
    private Long timeStamp;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(Long deviceId) {
        this.deviceId = deviceId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getWeekRepeat() {
        return weekRepeat;
    }

    public void setWeekRepeat(Integer weekRepeat) {
        this.weekRepeat = weekRepeat;
    }

    public Integer getHour() {
        return hour;
    }

    public void setHour(Integer hour) {
        this.hour = hour;
    }

    public Integer getMinute() {
        return minute;
    }

    public void setMinute(Integer minute) {
        this.minute = minute;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public Long getTimeStamp() {
        return timeStamp;
    }

    public void setTimeStamp(Long timeStamp) {
        this.timeStamp = timeStamp;
    }

    @Override
    public String toString() {
        return "AlarmInfo{" +
                "id=" + id +
                ", deviceId=" + deviceId +
                ", name='" + name + '\'' +
                ", type=" + type +
                ", weekRepeat=" + weekRepeat +
                ", hour=" + hour +
                ", minute=" + minute +
                ", state='" + state + '\'' +
                ", timeStamp=" + timeStamp +
                '}';
    }
}
